package com.aaa.mrcai.controller;

import com.aaa.mrcai.result.AjaxResult;
import com.aaa.mrcai.service.MoreGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author 惠普
 * @date 2021/12/15  14:33
 */
@RestController
@RequestMapping("more")
public class MoreGoodsController {
    @Autowired
    private MoreGoodsService moreGoodsService;

    @RequestMapping("/goodsMore/{cid}")
    public AjaxResult moreGoods(@PathVariable("cid") int cid){
        return moreGoodsService.listMoreGoods(cid);

    }
}
